
# 5.设计根据QQ和密码登录的过程(QQ和密码预设为指定的值). 执行结果为登录是否成功(boolean类型的值)
# qq = input('请输入qq:')
# passd= input('请输入密码:')
# def enter(qq,passd):
#     if qq =='123456' and passd =='123':
#         print('登录成功',True)
#
#     else:
#         print('登录失败', False)
#
#
# enter(qq,passd)
#




# def enter(qq,passsd):
#     if qq ==123456 and passsd ==123:
#         print('登录成功',True)
#
#     else:
#         print('登录成功', False)
#
#
# print(enter(123456, 123))
# print(enter(123436, 123))



#
# i = 1
# while i<=5:
#     j=1
#     while j<=5-i:
#         print(" ",end='')
#         j+=1
#     k=1
#     while k<=2*i-1:
#         print('*',end='')
#         k+=1
#     print()
#     i+=1

i = 1
while i<=5:
    j=1
    while j<=5-i:
        print(" ",end='')
        j+=1
    k=1
    while k<=2*i-1:
        print('*',end='')
        k+=1
    print()
    i+=1
